package com.eCommerce.corecontract.dto;

import java.io.Serializable;

public class ComposantDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the libelle
	 */
	public String getLibelle() {
		return libelle;
	}

	/**
	 * @param libelle
	 *            the libelle to set
	 */
	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

	/**
	 * @return the nbComposantStock
	 */
	public long getNbComposantStock() {
		return nbComposantStock;
	}

	/**
	 * @param nbComposantStock
	 *            the nbComposantStock to set
	 */
	public void setNbComposantStock(long nbComposantStock) {
		this.nbComposantStock = nbComposantStock;
	}

	private Long id;
	private String code;
	private String libelle;
	private long nbComposantStock;
	/**
	 * @param code
	 * @param libelle
	 * @param nbComposantStock
	 * @param image
	 * @param categorieDTO
	 * @param description
	 */


	private String image;
	/**
	 * @param code
	 * @param libelle
	 * @param nbComposantStock
	 * @param image
	 * @param prix
	 * @param categorieDTO
	 * @param description
	 */
	public ComposantDTO(String code, String libelle, long nbComposantStock,
			String image, double prix, CategorieDTO categorieDTO,
			String description) {
		super();
		this.code = code;
		this.libelle = libelle;
		this.nbComposantStock = nbComposantStock;
		this.image = image;
		this.prix = prix;
		this.categorieDTO = categorieDTO;
		this.description = description;
	}

	private double prix;
	private CategorieDTO categorieDTO;
	private String description;
	

	/**
	 * @param code
	 * @param libelle
	 * @param nbComposantStock
	 */

	/**
	 * 
	 */
	public ComposantDTO() {
		super();
	}

	/**
	 * @param code
	 * @param libelle
	 * @param nbComposantStock
	 * @param image
	 */

	/**
	 * @param image
	 *            the image to set
	 */
	public void setImage(String image) {
		this.image = image;
	}

	public ComposantDTO(String code, String libelle, long nbComposantStock,
			String image, CategorieDTO categorieDTO) {
		super();
		this.code = code;
		this.libelle = libelle;
		this.nbComposantStock = nbComposantStock;
		this.image = image;
		this.categorieDTO = categorieDTO;
	}

	/**
	 * @return the image
	 */
	public String getImage() {
		return image;
	}

	public void setCategorieDTO(CategorieDTO categorieDTO) {
		this.categorieDTO = categorieDTO;
	}

	public CategorieDTO getCategorieDTO() {
		return categorieDTO;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setPrix(double prix) {
		this.prix = prix;
	}

	public double getPrix() {
		return prix;
	
	}

}
